package zero.tech.games.pdk.process;

import com.alibaba.fastjson.JSONObject;

import zero.tech.core.ZeroContext;
import zero.tech.core.data.Resp;
import zero.tech.games.logic.common.Room;
import zero.tech.games.logic.process.ReqRoomProcess;
import zero.tech.games.pdk.data.consts.PDKCMD;
import zero.tech.games.pdk.service.api.IPdkService;
import zero.tech.wsnet.controller.LogicController;
import zero.tech.wsnet.data.IREQ;
@IREQ(code = PDKCMD.REQ_SHOOT_BIRD)
public class ReqShootbird  extends ReqRoomProcess{

	@Override
	public void process(Room room, LogicController controller, Resp param) {
		JSONObject obj = (JSONObject) param.getParam();
		int bird=obj.getIntValue("bird");
		IPdkService pdkService = ZeroContext.getInstance(IPdkService.class);
		pdkService.reqShootBird(room,controller,bird);
	}

}
